package com.lenovo.codestatreport.git.service;

import com.lenovo.codestatreport.git.mapper.GitJiraNameRelationshipMapper;
import com.lenovo.codestatreport.git.model.GitJiraNameRelationship;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Howie Lu
 * @version Updated at 2019/06/04
 * @description
 */
@Service("GitJiraNameRelationshipService")
public class GitJiraNameRelationshipServiceImpl implements GitJiraNameRelationshipService {

    @Autowired
    GitJiraNameRelationshipMapper mapper;

    @Override
    public List<GitJiraNameRelationship> getAllRelationships() {
        return mapper.findAllRelationships();
    }

    //弃用
    @Override
    public List<String> getChineseNameByGitName(String gitName) {
        return mapper.findChineseNameByGitName(gitName);
    }
}
